package com.zhanghe.chap01;

import com.zhanghe.annnation.ThreadSafe;

/**  
 * Sequance
 *   
 * @author Clevo  
 * @date 2017/12/26 0:14 
 */  
@ThreadSafe
public class Sequance {
	
	private int value = 0;
	/**
	 * ����һ��Ψһ����ֵ
	 * ���ܣ�<br/>
	 * @return
	 * @exception   ��
	 * @since   	�״δ�����zhanghe  2017-12-25)<br/>
	 *
	 */
	public synchronized int getNext(){
		return value++;
	}
	public int getValue() {
		return value;
	}
	public void setValue( int value ) {
		this.value = value;
	}
	
	
}
